import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Thread26 {
    public static void main(String[] args) {
        ExecutorService a= Executors.newFixedThreadPool(10);
        for(int i=0;i<10;i++)
        {
            int n=i;
            a.submit(new Runnable() {
                @Override
                public void run() {
                    System.out.println(n);

                }
            });
        }
    }
}
